package com.kz.springboot.common.log;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

/**
 * UserAuditLog
 * <p>
 * 用户操作日志记录工具
 * </p>
 *
 * @author wyz
 */
public class UserAuditLog {

    private static Logger logger = LoggerFactory.getLogger(UserAuditLog.class);

    public static void audit(String format, long operatorId, Object... args) {
        logger.info("## 用户[id={}] " + format, operatorId, args);
    }

    public static void error(String format, long operatorId, Object... args) {
        logger.error("## 用户[id={}] " + format, operatorId, args);
    }

    public static void warn(String format, long operatorId, Object... args) {
        logger.warn("## 用户[id={}] " + format, operatorId, args);
    }
}
